package com.example.optimizeapplication.receive;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.example.optimizeapplication.MainActivity;

public class OrderBRecevieer extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
            if (intent != null && intent.getAction().equals(MainActivity.orderAction));
        Log.d("sp", "接收器B收到了一个有序广播");
        //中断拦截广播
        abortBroadcast();
    }
}
